var mongoose = require("../mongoose")

//创建产品Schema
var schema = new mongoose.Schema({
    userId: { type: String, require: true },//用户id
    userName: { type: String, require: true },//用户名
    phone: { type: String, require: true },//手机号
    passWord: { type: String, require: true },//密码
    sex: { type: String, require: true },//性别 0保密 1男 2女
    introduction: { type: String, require: true },//简介
    userImg: { type: String, require: true },//头像
    Administrator: { type: String, require: true },//0 超管 1管理员 2 啥也不是
    createUserDate: { type: String, require: true },//用户注册时间
    createBirth: { type: String, require: true },//默认生日
    updateDate: { type: String, require: true },//更新时间
});
// 定义MongoDB数据模型 (表>=集合)
var User = mongoose.model("userLists", schema);
module.exports = User